package enumerated;

import static print.Print.*;


public class CarWash {
    public enum Cycle{
        UNDERBODY{
            @Override
            void action() {
                print("Spraying the underbody");
            }
        },
        WHEELWASH{
            @Override
            void action() {
                print("Washing the wheels");
            }
        },
        PREWASH{
            @Override
            void action() {
                print("Loosening the dirt");
            }
        },
        BASIC{
            @Override
            void action() {
                print("The basic wash");
            }
        },
        HOTWAX{
            @Override
            void action() {
                print("Applying hot wax");
            }
        }
        ;
        abstract void action();
    }
}
